using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;

namespace WebComponents.Templates
{
	// do not show the StatsData class in the Toolbox...
	[ToolboxItem(false)] 
	public class StatsData : WebControl, INamingContainer
	{
		#region Private Member Variables
		// private member variables
		private string statsTitle;
		private int totalPostCount;
		private int totalUserCount;
		#endregion

		#region Constructor
		internal StatsData(string title, int postCount, int userCount)
		{
			this.statsTitle = title;
            this.totalPostCount = postCount;
            this.totalUserCount = userCount;
		}
		#endregion

		#region Properties
		public string Title
		{
			get
			{
				return this.statsTitle;
			}
		}

		public int TotalPostCount
		{
			get
			{
				return totalPostCount;
			}
		}

		public int TotalUserCount
		{
			get
			{
				return totalUserCount;
			}
		}
		#endregion
	}
}
